package com.youzan.cloud.component.biz.member.dal.dataobject;

import java.util.Date;

public class LogRecord {
	/** 主键 */
	private Long id;
	/** 请求发起系统 */
	private String sourceSystem;
	/** 请求目标系统 */
	private String targetSystem;
	/** 请求报文 */
	private String requestBody;
	/** 响应报文 */
	private String responseBody;
	/** 创建时间 */
	private Date createTime;

	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return this.id;
	}
	
	public void setSourceSystem(String sourceSystem) {
		this.sourceSystem = sourceSystem;
	}
	
	public String getSourceSystem() {
		return this.sourceSystem;
	}
	
	public void setTargetSystem(String targetSystem) {
		this.targetSystem = targetSystem;
	}
	
	public String getTargetSystem() {
		return this.targetSystem;
	}
	
	public void setRequestBody(String requestBody) {
		this.requestBody = requestBody;
	}
	//qa
	public String getRequestBody() {
		return this.requestBody;
	}
	
	public void setResponseBody(String responseBody) {
		this.responseBody = responseBody;
	}
	
	public String getResponseBody() {
		return this.responseBody;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	

	@Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) {return false;}
        LogRecord that = (LogRecord) o;
        return id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(id);
    }
    
    @Override
    public String toString() {
        return "LogRecord{" +
				"id=" + id +
						",sourceSystem='" + sourceSystem + "'" + 
						",targetSystem='" + targetSystem + "'" + 
						",requestBody='" + requestBody + "'" + 
						",responseBody='" + responseBody + "'" + 
						",createTime='" + createTime + "'" + 
		                '}';
    }
	
}